import request from '@/utils/request'

// 查询公交车辆信息列表
export function listBuses(query) {
  return request({
    url: '/system/buses/list',
    method: 'get',
    params: query
  })
}

// 查询公交车辆信息详细
export function getBuses(id) {
  return request({
    url: '/system/buses/' + id,
    method: 'get'
  })
}

// 新增公交车辆信息
export function addBuses(data) {
  return request({
    url: '/system/buses',
    method: 'post',
    data: data
  })
}

// 修改公交车辆信息
export function updateBuses(data) {
  return request({
    url: '/system/buses',
    method: 'put',
    data: data
  })
}

// 删除公交车辆信息
export function delBuses(id) {
  return request({
    url: '/system/buses/' + id,
    method: 'delete'
  })
}
